package orz.xuchao.javapatterns.singleton;

public class EagerSingleton {
	private static EagerSingleton instance = new EagerSingleton();

	/**
	 * 私有默认构造子
	 */
	private EagerSingleton() {
	}

	/**
	 * 静态工厂方法
	 */
	public static EagerSingleton getInstance() {
		return instance;
	}


	public void singletonOperation() {
		System.out.println("EagerSingleton");
	}
	
}
